package com.hutao.medical.pojo.model;

import java.util.ArrayList;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * 转科记录
 * @author lyh
 *
 */
public class HospitalVisitTransferDeptInfo {

	/**
	 * visitGuid
	 */
	private String visitGuid;
	
	/**
	 * 转科记录集合
	 */
	private List<HospitalVisitTransferDeptRecord> transferDeptRecords = new ArrayList<HospitalVisitTransferDeptRecord>();

	
	@JsonIgnore
	public void clearEmpty(){
		for (int i = this.transferDeptRecords.size()-1; i >=0; i--) {
			HospitalVisitTransferDeptRecord transferDeptRecord = this.transferDeptRecords.get(i);
			if(transferDeptRecord.isEmpty()){
				this.transferDeptRecords.remove(i);
			}
		}
	}
	
	public String getVisitGuid() {
		return visitGuid;
	}

	public void setVisitGuid(String visitGuid) {
		this.visitGuid = visitGuid;
	}

	public List<HospitalVisitTransferDeptRecord> getTransferDeptRecords() {
		return transferDeptRecords;
	}

	public void setTransferDeptRecords(
			List<HospitalVisitTransferDeptRecord> transferDeptRecords) {
		this.transferDeptRecords = transferDeptRecords;
	}
	
	
}
